package com.bnzjy.srb.sms.feign;

import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "service-core", fallback = CoreUserInfoFeign.class)
public interface CoreUserInfoFeign {
    
    /**
     * 远程调用 service-sms 中的UserInfoController 的 手机号校验功能
     * @param mobile
     * @return
     */
    @ApiOperation("校验手机号是否被注册过")
    @GetMapping("/api/core/userInfo/checkMobile/{mobile}")
    boolean checkMobile(@PathVariable String mobile);
    
}
